projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb4f8d8
)
GtkBox: Fix an off-by-one error with center allocation
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 19 Feb 2014 03:55:45 +0000
(22:55 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 19 Feb 2014 03:55:45 +0000
(22:55 -0500)
This error was causing children to not get allocated when
the center widget is the first one in the list of the box's
children.
gtk/gtkbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbox.c
b/gtk/gtkbox.c
index f67770b38c8f32b0ca61f60a9d5316cab9648d48..9fa7f32d401b0bc3b53e8f46e0715b3415da77c1 100644
(file)
--- a/
gtk/gtkbox.c
+++ b/
gtk/gtkbox.c
@@
-890,11
+890,11
@@
gtk_box_size_allocate_with_center (GtkWidget *widget,
{
min_size[child->pack] += req->minimum_size + 2 * child->padding;
nat_size[child->pack] += req->natural_size + 2 * child->padding;
+
+ idx[child->pack] += 1;
}
req->data = child;
-
- idx[child->pack] += 1;
}
/* Determine size of center */